import request from '@/utils/request'

// 查询;列表
export function listType(query) {
  return request({
    url: '/fincal/carType/list',
    method: 'get',
    params: query
  })
}
// 查询所有车辆类型数据
export function selectAllCarTypelist(data) {
  return request({
    url: '/fincal/carType/selectAllCarTypelist',
    method: 'post',
    data: data
  })
}
// 查询;详细
export function getType(id) {
  return request({
    url: '/fincal/carType/' + id,
    method: 'get'
  })
}

// 新增;
export function addType(data) {
  return request({
    url: '/fincal/carType',
    method: 'post',
    data: data
  })
}

// 修改;
export function updateType(data) {
  return request({
    url: '/fincal/carType',
    method: 'put',
    data: data
  })
}

// 删除;
export function delType(id) {
  return request({
    url: '/fincal/carType/' + id,
    method: 'delete'
  })
}
